package cn.edu.scau.cmi.chenruilin.client;


import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class FactoryPatternClient extends Application{
	@Override
	public void start(Stage primaryStage) {
		try {
			Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/chenruilin/factory/factoryPattern.fxml"));
			Scene scene = new Scene(root,560,460);
			primaryStage.setScene(scene);
			primaryStage.setResizable(false);
			primaryStage.setTitle("工厂模式方法");
			primaryStage.show();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
